Fix for DelayedVector that are not geojson format.#522
Conversation
|
@copilot review without making changes |
I found one substantive issue: |
| else: | ||
| data = data.to_driver_vector_cube() | ||
| elif isinstance(data, DriverDataCube): | ||
| if isinstance(data, DriverDataCube): |
There was a problem hiding this comment.
@JeroenVerstraelen I found this while checking with mypy. This makes sure the 'data' used in the object that is returned
| import xarray | ||
|
|
||
| from openeo.metadata import CollectionMetadata | ||
| from typeguard import typechecked |
There was a problem hiding this comment.
is this import of typeguard intended, or just temporary during development?
because typeguard was only added as test-dependency in setup.py,
while importing it here in save_result makes it a runtime dependency
There was a problem hiding this comment.
Yes, this does not work handily. I don't know if it has a performance cost yet, so it would be risky to run it in production directly. I'll close this PR for the moment and only check typing when running in tests.
Found while fixing typings with mypy
Related Open-EO/openeo-geopyspark-driver#793